<!-- head -->
<div class="row wrapper border-bottom white-bg page-heading">
	<div class="col-md-12">
		<ol class="breadcrumb">
			<li><a>主页</a></li>
			<li><a>管理中心</a></li>
			<li>短信通道管理</li>
			<li class="active"><strong>短信通道异常预警</strong></li>
		</ol>
	</div>
</div>

<!-- content-->
<div class="wrapper wrapper-content animated fadeIn"
	ng-controller="managerSmsExceptionCtrl">
	<form class="form-horizontal" id="form1" name="horizontal">
		<div class="row">
			<div class="col-lg-12">
				<div class="panel-body ibox float-e-margins">
					<!-- <div class="ibox-title">
						<h5>短信异常预警</h5>
					</div> -->
					<div class="ibox-content">
						<div class="form-group">
                                <h5 style="font-size:14px;">短信异常预警</h5>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">预警短信内容:</label>
                                <label class="control-label">[短信通道异常预警]你好，xx短信通道YYYY-MM-DD hh:mm:ss——YYYY-MM-DD hh:mm:ss失败N条，请注意！</label>
                                <div class="form-group">
	                                <label class="col-sm-2 control-label"></label>
	                                <label class="control-label">[短信通道异常切换]你好，xx短信通道YYYY-MM-DD hh:mm:ss——YYYY-MM-DD hh:mm:ss失败N条，YYYY-MM-DD hh:mm:ss已切换Y短信通道，请注意！</label>
                            	</div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label">失败次数设置:</label>
                                <div class="col-sm-10" style="float:left">
                                    <input type="text" class="form-control" style="float:left;width:100px" ng-model="baseInfo.warningTime" ng-pattern="/^([1-9])\d{0,10}$/" required>
                                    <span  style="float:left;margin:7px 10px 0 10px;">分钟内,短信连续发送失败</span>
                                    <input type="text" class="form-control" style="float:left;width:100px" ng-model="baseInfo.warningNum" ng-pattern="/^([1-9])\d{0,10}$/" required>
                                    <span  style="float:left;margin:7px 10px 0 10px;"> 次</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label"></label>
                                <div class="col-sm-10">
                                    <span style="color:red">备注:在设置的时间范围内,若短信连续发送失败的次数达到设置的次数,会发送预警短信</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">预警缓冲时间设置:</label>
                                <div class="col-sm-10" style="float:left">
                                    <input type="text" class="form-control" style="float:left;width:100px" ng-model="baseInfo.warningBufferTime" ng-pattern="/^[1-9]\d{0,10}|0$/" required>
                                    <span  style="float:left;margin:7px 10px 0 10px;">分钟</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label"></label>
                                <div class="col-sm-10">
                                    <span style="color:red">备注:触发预警后先发送短信异常预警,缓冲时间结束后重新记录预警事件，如果在触发才切换通道并发送预警切换短信</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">短信接收人:</label>
                                <div class="col-sm-10">
                                    <textarea style="width:400px;height:100px;" ng-model="baseInfo.warnPhone" ng-pattern="/^[1-9][\d{0,10},]|0$/" required></textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label"></label>
                                <div class="col-sm-10" >
                                    <span style="color: red;">注:若需多人同时接收短信时,请用英文逗号隔开</span>
                                </div>
                            </div>
					</div>
				</div>
			</div>
		</div>
		 <div class="col-lg-12 bgff">
            <div class="col-sm-3"></div>
            <div class="col-sm-6">
                <button class="btn btn-primary btn-mr20" type="button"
                                ng-click="submit()" ng-disabled="horizontal.$invalid">确定</button>
                        <a class="btn btn-primary4 btn-mr20" type="button" ui-sref="sys.managerSms">返回</a>
            </div>
        </div>
	</form>
</div>